import 'dart:io';

void main() {
  var astronauts = 1;
  if (astronauts == 0) {
    throw StateError('No astronauts.');
  }

  try {
    throw FileSystemException("文件不存在");
  } on Exception catch (e) {
    print('哎呀 $e');
  }
}
